import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';

@Component({
  selector: 'app-commodity-detail',
  templateUrl: './commodity-detail.component.html',
  styleUrls: ['./commodity-detail.component.less'],
})
export class CommodityDetailComponent implements OnInit {
  constructor(private acttiveRoute: ActivatedRoute) {}
  commodity_id: number;
  ngOnInit(): void {
    this.acttiveRoute.params.subscribe(({ id }) => {
      this.commodity_id = id;
    });
  }
}
